package com.zclcs.model;

import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import lombok.Data;

/**
 * 菜单
 * 
 * @author 周成龙
 *
 */
@Data
public class Menu implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.UUID)
	private String id;

	private String parentId;

	private String name;

	private String menuName;

	private String permission;

	private Integer type;

	private Integer sort;

	@TableField(exist = false)
	private List<Menu> children;

	// 排序
	@TableField(exist = false)
	private String sortable;

	@TableField(exist = false)
	private List<String> roles;

	@TableField(exist = false)
	private String title;

	// 是否已选中角色
	@TableField(exist = false)
	private Integer isSelected;

	// 角色编号
	@TableField(exist = false)
	private String roleId;

}
